import React from 'react'
import { Outlet } from 'react-router-dom'
import withLogin from '../../hoc/withLogin'
function Index() {
    const username=localStorage.getItem('username')
  return (
    <div>
        欢迎  {username}  登录
        <Outlet></Outlet>
        </div>
  )
}

export default withLogin(Index)